<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.tjsinfo.tjsoa.worklog.vo.WorkLogMain"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <base href="<%=basePath%>"/>
    
  	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>粮油集团办公自动化协作平台</title>
	<link href="style/txlz7.css" rel="stylesheet" type="text/css" />
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style >
		.aaa{
			background:url(images/icon1000.gif) no-repeat 0 11px; padding-left: 8px;
		}
	</style>
<link href="<%=basePath%>style/txlz7.css" rel="stylesheet" type="text/css" id="txlz7"/>
<link rel="stylesheet" type="text/css" href="<%=basePath %>ajaxFramework/ext-2.1/resources/css/ext-all.css" />
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/jQuery/jquery.js"></script>
<script type="text/javascript" src="<%=basePath %>js/common/global/validator.js"></script>
<script type="text/javascript" src="<%=basePath %>js/common/global/pageControl.js"></script>
<script type="text/javascript" src="<%=basePath %>js/common/system/selectusercheck.js"></script>
<script type="text/javascript" src="<%=basePath%>FCKeditor/fckeditor.js"></script>
	<script type="text/javascript">
	function submitform1()
			{
				//alert("aa");
				
				//var contest = $("#contest").val();
				//alert(contest);
				//if(contest==""){
				//	Ext.MessageBox.show({ title:Ext.systemTitle,
				//	   msg: '批示的意见不能为空！',
				//	   buttons: Ext.Msg.OK,						  					
				//	   icon: Ext.MessageBox.INFO
				//});
				//}else{
					document.form1.submit();     
					
					//window.location.reload();
				//}
		}
	</script>
  </head>
  
  <body>
  	 
    <%
    WorkLogMain workLogMain = (WorkLogMain)request.getAttribute("workLogMain");
    Integer messageid = (Integer)request.getAttribute("messageid");	
    Integer userid = (Integer)request.getAttribute("userid");
    %>
    <form  name="form1" method="post" action="<%=basePath%>tjsinfo/tjsoa/worklog/instructionWorkLog.do">
  	<div id="right" style="height:93%;">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" >
          <tr>
            <td background="images/contacttitle01.gif" width="28" height="26"></td>
            <td class="td1px">工作日志批示</td>
            <td background="images/contacttitle03.gif" width="72" height="26">&nbsp;</td>
          </tr>
      </table>
      <div class="contact_content" style="overflow: scroll;">
         <div class="tab_add">
            <table width="100%" border="0" cellspacing="0" class="tab_add01" style="height: 92%">
                <tr>
                </tr>
                <tr>
                  <td>日志原文：</td>
                </tr>
                <tr>
                  <td>
                  <table width="99%" border="0" cellspacing="0" cellpadding="0" class="texttab">
                      <tr>
                        <td>
                        <div style="height:150px;width:99%;overflow:auto;padding-left:8px">
                        <%=workLogMain.getContent() %>
                        </div>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
                
                <tr>
                  <td>请输入要批示的意见：</td>
                </tr>
                <tr>
                  <td height="100"><textarea name="contest" id="contest" style="width:100%; height:250px;"></textarea>
 												<!-- <script type="text/javascript">
													var oFCKeditor = new FCKeditor( 'contest' ) ;
													oFCKeditor.BasePath = 'FCKeditor/' ;
													oFCKeditor.ToolbarSet = 'Default' ;
													oFCKeditor.Width = '98%' ;
													oFCKeditor.Height = '250' ;
													oFCKeditor.Value = '' ;
													oFCKeditor.ReplaceTextarea(); 
													//oFCKeditor.Create() ;
						                         </script> -->
				</td>
                </tr>
                <tr>
                  <th>
                  <div align="center">
                  <!--<a href="javaScript:submitform1();" ><img src="images/baocun.gif" width="71" height="21" border="0" /></a>&nbsp;&nbsp;&nbsp;&nbsp;-->
                  <%
                  if(request.getAttribute("start")== null)
                  {
                  if("D".equals(workLogMain.getType()))
                  	{
                  %>
                  <a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogDateModle.do?id=<%=workLogMain.getTjsUser().getUserId() %>" onclick="submitform1()"  ><img src="images/baocun.gif" width="71" height="21" border="0" /></a>&nbsp;&nbsp;&nbsp;&nbsp;
                  <a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogDateModle.do?id=<%=workLogMain.getTjsUser().getUserId() %>" ><img src="images/qx.gif" width="71" height="21" border="0" /></a>
                  <% 		
                  	}
                  	else if("W".equals(workLogMain.getType()))
                  	{
                  %>
                  <a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogWeekModle.do?id=<%=workLogMain.getTjsUser().getUserId() %>" onclick="submitform1()"  ><img src="images/baocun.gif" width="71" height="21" border="0" /></a>&nbsp;&nbsp;&nbsp;&nbsp;
                  <a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogWeekModle.do?id=<%=workLogMain.getTjsUser().getUserId()%>" ><img src="images/qx.gif" width="71" height="21" border="0" /></a>
                  <% 		
                  	}
                  	else if("M".equals(workLogMain.getType()))
                  	{
                  %>
                  <a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogMonthModle.do?id=<%=workLogMain.getTjsUser().getUserId() %>" onclick="submitform1()"  ><img src="images/baocun.gif" width="71" height="21" border="0" /></a>&nbsp;&nbsp;&nbsp;&nbsp;
                  <a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogMonthModle.do?id=<%=workLogMain.getTjsUser().getUserId() %>" ><img src="images/qx.gif" width="71" height="21" border="0" /></a>
                  <% 		
                  	}
                  	else if("Q".equals(workLogMain.getType()))
                  	{
                  %>
                  <a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogMonthJiDuModle.do?id=<%=workLogMain.getTjsUser().getUserId() %>" onclick="submitform1()"  ><img src="images/baocun.gif" width="71" height="21" border="0" /></a>&nbsp;&nbsp;&nbsp;&nbsp;
                  <a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogMonthJiDuModle.do?id=<%=workLogMain.getTjsUser().getUserId() %>" ><img src="images/qx.gif" width="71" height="21" border="0" /></a>
                  <% 		
                  	}
                  	else if("H".equals(workLogMain.getType()))
                  	{
                  %>
                  <a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkworkLogHalfYearModle.do?id=<%=workLogMain.getTjsUser().getUserId() %>" onclick="submitform1()"  ><img src="images/baocun.gif" width="71" height="21" border="0" /></a>&nbsp;&nbsp;&nbsp;&nbsp;
                  <a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkworkLogHalfYearModle.do?id=<%=workLogMain.getTjsUser().getUserId() %>" ><img src="images/qx.gif" width="71" height="21" border="0" /></a>
                  <% 		
                  	}
                  	else if("Y".equals(workLogMain.getType()))
                  	{
                  %>
                    <a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkworkLogYearModle.do?id=<%=workLogMain.getTjsUser().getUserId() %>" onclick="submitform1()" ><img src="images/baocun.gif" width="71" height="21" border="0" /></a>&nbsp;&nbsp;&nbsp;&nbsp;
                  <a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkworkLogYearModle.do?id=<%=workLogMain.getTjsUser().getUserId() %>" ><img src="images/qx.gif" width="71" height="21" border="0" /></a>
                  <% 		
                  	}
                  	else if("list".equals(workLogMain.getType()))
                  	{
                  %>
                  <a href="<%=basePath%>tjsinfo/tjsoa/worklog/workLoglistmode.do?id=<%=workLogMain.getTjsUser().getUserId() %>" onclick="submitform1()"  ><img src="images/baocun.gif" width="71" height="21" border="0" /></a>&nbsp;&nbsp;&nbsp;&nbsp;
                  <a href="<%=basePath%>tjsinfo/tjsoa/worklog/workLoglistmode.do?id=<%=workLogMain.getTjsUser().getUserId() %>" ><img src="images/qx.gif" width="71" height="21" border="0" /></a>
                  <% 		
                  	}
                  		}
                  		else
                  		{
                  	%>
                  	<a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkSuddenlyWorkLog.do?id=<%=workLogMain.getTjsUser().getUserId() %>" onclick="submitform1()"  ><img src="images/baocun.gif" width="71" height="21" border="0" /></a>&nbsp;&nbsp;&nbsp;&nbsp;
                  	<a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkSuddenlyWorkLog.do" ><img src="images/qx.gif" width="71" height="21" border="0" /></a>
                  	<% 	
                  		}
                  %>
                  
                  
                  
                  </div></th>
                </tr>
              </table>
              <input type="hidden" name="id" value="<%=workLogMain.getId() %>"/>
               <input type="hidden" name="messageid" value="<%=messageid%>"/>
               <%
               		if(request.getAttribute("temp") != null)
               		{
               	%>
               			
               			<input type="hidden" name="temp" value="temp"/>
               	<% 					
               		}
               %>
     
          </div>

         
      </div>
</div>	
         </form>
  </body>
</html>
